﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class MenuScript : MonoBehaviour {

    public Canvas quitCanvas;
    public Button startText;
    public Button quitText;
    public GameObject mainCamera;


	// Use this for initialization
	void Start () {
        quitCanvas.enabled = false;
	}
	
    //退出按钮操作
    public void ExitPress(){
        quitCanvas.enabled = true;
        startText.enabled = false;
        quitText.enabled = false;
    }

    //No按钮操作
    public void NoPress(){
        quitCanvas.enabled = false;
        startText.enabled = true;
        quitText.enabled = true;
    }

    //Play按钮操作
    public void StartLevel(){
        this.gameObject.active = false;
        quitCanvas.enabled = false;
        mainCamera.active = true;
    }

    public void ExitGame(){
        Application.Quit();
    }

}
